package com.prb.proivder.one.service;

import com.prb.api.service.HelloService;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

@Service
public class ProviderService implements HelloService {
    public String sayHello(String msg) {

        Object ip = RpcContext.getContext().getAttachments().get("requestId");

        System.out.println("ip is :" + ip);

        System.out.println("provider 111 service receive : " + msg);
        return "provider service return : " + msg;
    }
}
